<template>
    <div style="position: relative;">
        <div class="box" style="position: absolute;right: 20px;top: 10px; transform: scale(0.3);">
            <div class="rack">
                <div class="flower">
                    <div class="flower-petal"></div>
                    <div class="flower-stem"></div>
                </div>
                <div class="vase"></div>
            </div>
            <div class="blessing blessing1">福</div>
            <div class="card card1 bangni">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/d2e36b26cc51113c7f8451e1d4500e35~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card1 youhu">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/7e4a7c01e7022917f7242419f19a6c03~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card1 troy">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/8db3fdff9a85ee60ad0e6706b6632064~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card1 xiaopu">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/ed03b70fe4ab1ce93c74ff5cf4ae82d0~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card1 yizhou">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/0779dd287afeb3e6a983deb0ff79d724~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card2 xzhushou">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/5d08c09da9bffd1331bc6220b884a466~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card2 captaincc">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/6cd5915df47110ea932c1a1910569532~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card2 xiawucha">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/b72e991ee9b1c9bdca7b2bd4c8dc78a8~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card2 yoyo">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/e3a142ceef01d6d640ac417a16f127f6~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="card card2 click">
                <div class="card-box">
                    <img src="https://p3-passport.byteimg.com/img/user-avatar/8378ae90f38c97148d85582b480fd3ad~180x180.awebp"
                        alt="" />
                </div>
            </div>
            <div class="tv"></div>
            <div class="cabinet">
                <div class="handle handle1"></div>
                <div class="handle handle2"></div>
                <div class="leg leg1"></div>
                <div class="leg leg2"></div>
            </div>
            <div class="paint">
                <div class="ring ring1"></div>
                <div class="ring ring2"></div>
                <div class="ring ring3"></div>
                <div class="ring ring11"></div>
                <div class="ring ring12"></div>
                <div class="ring ring13"></div>
                <div class="ring ring21"></div>
                <div class="ring ring22"></div>
                <div class="ring ring23"></div>
            </div>
            <div class="cupboard">
                <div class="drawer drawer1"></div>
                <div class="drawer drawer2"></div>
                <div class="drawer drawer3"></div>
                <div class="leg leg1"></div>
                <div class="leg leg2"></div>
            </div>
        </div>
    </div>

</template>

<script>
export default {
    // setup () {
    //     const value = ref(new Date())

    //     return {value}
    // }
}
</script>

<style lang="less" scoped>
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    background: linear-gradient(to top, #ab29a7 0%, #f25a69 50%, #f66364 100%);
    height: 100vh;
}

.box {
    width: 370px;
    position: relative;
}

.cabinet {
    position: absolute;
    top: 200px;
    left: 10px;
    width: 300px;
    height: 100px;
    border-radius: 50px;
    background: #fdd4b8;
}

.cabinet::before {
    content: '';
    position: absolute;
    width: 276px;
    height: 76px;
    left: 10px;
    top: 10px;
    border: 2px solid #b68052;
    border-radius: 40px;
    z-index: 2;
}

.cabinet::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 76px;
    left: 0;
    top: 0;
    box-shadow: 72px 12px #f1c4ad, 144px 12px #f1c4ad, 216px 12px #f1c4ad;
    z-index: 1;
}

.handle {
    width: 8px;
    height: 30px;
    border-radius: 8px;
    background: #f2b4e7;
    position: absolute;
    top: 35px;
    border: 1px solid #e7a1bb;
}

.handle1 {
    left: 122px;
}

.handle2 {
    left: 160px;
}

.leg {
    position: absolute;
    width: 14px;
    height: 30px;
    background: #e0bda0;
    bottom: -30px;
    border-radius: 0 0 5px 5px;
    z-index: -1;
}

.leg1 {
    left: 60px;
}

.leg2 {
    right: 60px;
}

.tv {
    position: absolute;
    width: 160px;
    height: 120px;
    background: #ea4977;
    border-radius: 10px;
    left: 80px;
    top: 80px;
}

.tv::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 100px;
    left: 10px;
    top: 10px;
    background: linear-gradient(to bottom, #fee0e2 0%, #f5dbc2 50%, #edc391 100%);
    border-radius: 5px;
}

.card {
    width: 54px;
    height: 54px;
    position: absolute;
    top: 90px;
    z-index: 99;
}

.card-box {
    width: 54px;
    height: 54px;
    border: 1px solid #ffd7bf;
    position: absolute;
    background: #fd3c9f;
    border-radius: 10px;
    box-shadow: 0px 0px 8px #f5c28d;
}

.card img {
    width: 46px;
    height: 46px;
    border-radius: 100%;
    transform: rotate(-45deg);
    position: absolute;
    left: 3px;
    top: 3px;
}

.card1 {
    top: 90px;
    left: 80px;
    opacity: 0;
    animation: card1 10s linear infinite;
}

.card1 .card-box {
    transform: rotate(45deg) skewX(30deg) skewY(-15deg);
}

@keyframes card1 {
    0% {
        top: 90px;
        left: 80px;
        opacity: 0;
    }

    20% {
        top: 170px;
        left: 30px;
        opacity: 1;
    }

    25% {
        top: 170px;
        left: 30px;
        opacity: 0.5;
    }

    30%,
    100% {
        top: 170px;
        left: 30px;
        opacity: 0;
    }
}

.card2 {
    top: 90px;
    left: 180px;
    opacity: 0;
    animation: card2 10s linear infinite;
}

.card2 .card-box {
    transform: rotate(-45deg) skewX(-30deg) skewY(15deg);
}

.card2 img {
    transform: rotate(90deg);
}

@keyframes card2 {
    0% {
        top: 90px;
        left: 180px;
        opacity: 0;
    }

    20% {
        top: 170px;
        left: 230px;
        opacity: 1;
    }

    25% {
        top: 170px;
        left: 230px;
        opacity: 0.5;
    }

    30%,
    100% {
        top: 170px;
        left: 230px;
        opacity: 0;
    }
}

.youhu,
.captaincc {
    animation-delay: 2s;
}

.troy,
.xiawucha {
    animation-delay: 4s;
}

.xiaopu,
.yoyo {
    animation-delay: 6s;
}

.yizhou,
.click {
    animation-delay: 8s;
}

.blessing {
    height: 200px;
    display: inline-block;
    font-size: 32px;
    line-height: 1.2;
    font-family: fantasy;
    padding-left: 7px;
    color: #ffe9b9;
    text-shadow: 2px 2px 0px #fca481;
    animation: blessing 3s linear infinite;
    position: absolute;
    z-index: 99;
}

.blessing1 {
    top: 70px;
    left: 130px;
    opacity: 0;
}

@keyframes blessing {
    0% {
        top: 70px;
        left: 130px;
        font-size: 32px;
        opacity: 0;
    }

    20% {
        top: 20px;
        left: 130px;
        font-size: 32px;
        opacity: 1;
    }

    70% {
        top: 20px;
        left: 120px;
        font-size: 50px;
        opacity: 1;
    }

    80%,
    100% {
        top: 20px;
        left: 120px;
        font-size: 50px;
        opacity: 0;
    }
}

.handrail {
    position: absolute;
    width: 20px;
    height: 40px;
    background: #fcbd6e;
    bottom: -1px;
    border-bottom: 1px solid #e9af7f;
}

.handrail::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background: #fcbd6e;
    bottom: 35px;
    border: 1px solid #e9af7f;
    z-index: -1;
}

.handrail1 {
    left: -19px;
    border-left: 1px solid #e9af7f;
}

.handrail2 {
    right: -19px;
    border-right: 1px solid #e9af7f;
}

.handrail1::before {
    left: -5px;
}

.handrail2::before {
    right: -5px;
}

.rack {
    position: absolute;
    left: 330px;
    top: 110px;
    width: 100px;
    height: 10px;
    background: #a97f61;
}

.rack::after {
    content: '';
    width: 80px;
    height: 8px;
    background: #9d795e;
    position: absolute;
    left: 10px;
    top: 10px;
}

.vase {
    width: 30px;
    height: 34px;
    border-radius: 100%;
    background: #bc6273;
    position: absolute;
    top: -41px;
    left: 40px;
    z-index: 99;
}

.vase::after,
.vase::before {
    content: '';
    position: absolute;
    background: #bc6273;
    width: 8px;
    height: 15px;
    left: 11px;
    top: -13px;
}

.vase::after {
    height: 8px;
    top: 33px;
}

.flower {
    position: absolute;
    z-index: 19;
    left: 49px;
    top: -90px;
    transform: rotate(15deg);
}

.flower-petal {
    width: 30px;
    height: 16px;
    border-radius: 100%;
    background: #d7a1a2;
    position: absolute;
    border-bottom: 1px solid #333;
    z-index: 99;
    transform: scale(0.6);
}

.flower-petal::after,
.flower-petal::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 30px;
    background: linear-gradient(to bottom, #bc6273, #d7a1a2);
    top: -18px;
}

.flower-petal::before {
    left: -2px;
    border-radius: 100% 100% 0 20px;
}

.flower-petal::after {
    left: 13px;
    border-radius: 100% 100% 20px 0;
}

.flower-stem {
    width: 2px;
    height: 30px;
    background: #669294;
    position: absolute;
    left: 14px;
    top: 11px;
    z-index: 10;
}

.flower-stem::after,
.flower-stem::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 60px;
    background: #67a2a7;
    z-index: 11;
}

.flower-stem::before {
    left: -16px;
    top: -15px;
    transform: scale(0.2) rotate(-15deg);
    border-radius: 0 200px 0 130px;
}

.flower-stem::after {
    left: -8px;
    top: -18px;
    transform: scale(0.2) rotate(18deg);
    border-radius: 130px 0 200px 0;
}

.cupboard {
    width: 140px;
    height: 200px;
    position: absolute;
    background: #f3bf8d;
    left: 480px;
    top: 100px;
    border: 2px solid #f8952d;
    border-radius: 0 0 10px 10px;
}

.cupboard::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 16px;
    background: #f8952d;
    left: -12px;
    top: -16px;
    border-radius: 16px;
}

.drawer {
    width: 110px;
    height: 50px;
    background: #f8952d;
    border-radius: 5px;
    position: absolute;
    left: 15px;
    border: 2px solid #fa5039;
}

.drawer::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffc974;
    left: 50%;
    top: 50%;
    border-radius: 100%;
    margin: -6px 0 0 -6px;
}

.drawer1 {
    top: 10px;
}

.drawer2 {
    top: 70px;
}

.drawer3 {
    top: 130px;
}

.cupboard .leg {
    background: #f8952d;
}

.cupboard .leg1 {
    left: 20px;
}

.cupboard .leg2 {
    right: 20px;
}

.paint {
    width: 90px;
    height: 70px;
    position: absolute;
    left: 504px;
    top: 19px;
    border: 8px solid #bc6273;
    transform: rotateX(-25deg);
    background: #fcd77b;
}

.ring {
    width: 20px;
    height: 20px;
    border-radius: 50px;
    clip-path: polygon(50% 0%, 100% 0%, 100% 3600%, 50% 50%);
    transform: rotate(-90deg);
    position: absolute;
}

.ring::before {
    content: '';
    width: 2px;
    height: 8px;
    position: absolute;
    background: #fff;
    left: 10px;
    transform: rotate(-90deg);
}

.ring1,
.ring11,
.ring21 {
    border: 6px solid #dc4623;
    left: 3px;
}

.ring2,
.ring12,
.ring22 {
    border: 6px solid #db9b0e;
    left: 27px;
}

.ring3,
.ring13,
.ring23 {
    border: 6px solid #288f76;
    left: 51px;
}

.ring1,
.ring2,
.ring3 {
    top: 5px;
}

.ring11,
.ring12,
.ring13 {
    top: 22px;
}

.ring21,
.ring22,
.ring23 {
    top: 40px;
}
</style>